package com.example.wananrdroid.presenter;

import com.example.wananrdroid.base.BasePresenter;
import com.example.wananrdroid.bean.WenBean;
import com.example.wananrdroid.model.WenCallBack;
import com.example.wananrdroid.model.WenModel;
import com.example.wananrdroid.view.WenView;

public class WenPresenter extends BasePresenter<WenView> implements WenCallBack {
    private WenModel model;
    @Override
    protected void initModel() {
        this.model=new WenModel();
        addModel(model);
    }
    public void getwendata(){
        model.wendata(this);
    }
    @Override
    public void onSuccess(WenBean wendata) {
        mview.onSuccess(wendata);
    }

    @Override
    public void onFali(String error) {
        mview.onFali(error);
    }
}
